package com.design.ticket;

public class TickeTest {

    public static void main(String[] args) {
        Ticke ticke = TickeFactory.queryTicke("北京西", "长沙");
        ticke.showInfo("硬座");
        ticke = TickeFactory.queryTicke("北京西", "长沙");
        ticke.showInfo("软座");

        ticke = TickeFactory.queryTicke("北京西", "长沙南");
        ticke.showInfo("硬卧");
    }
}
